/**
 * @(#) SchoolExpListVO.as
 *
 * @date		2010. 11. 01.
 * @version		2.0
 * @author		Shin, Yunwoo
 * @client		Service Ace
  * @module		schoolexp (학자금 신청)
 * @description	학자금 신청 목록
 *
 */
package com.skt.common_hr.schoolexp_nos.model.vo
{
	import mx.formatters.PhoneFormatter;

	[Bindable]
	public class ReqSchoolExpVO
	{
		public var FAMSA:String;				// 가족관계
		public var FCNAM:String;				// 가족이름
		public var REGNO:String;				// 가족 주민번호
		public var ZOLD:int;					// 나이
		public var ZYEAR:String;				// 입학년도
		public var ZFDATE:Date;					// 적용기간
		public var ZTDATE:Date;					// 적용기간
		public var ZGRADE:String;				// 학년
		public var ZCOUMS:String;				// 학기
		public var ZSLART:String;				// 학교명
		public var TOTPY:Number = 0;				// 신청금액

		public var selected:Boolean = false;
		public function get regno():String
		{
			var pidNum:PhoneFormatter = new PhoneFormatter;
			pidNum.formatString = "######-#######";
			return pidNum.format(REGNO);
		}

		public var ZFYEAR:String;
		public var ZFMONTH:String;
		public var ZTYEAR:String;
		public var ZTMONTH:String;
		/*
		public function set ZFYEAR(v:String):void
		{
			var year:int = parseInt(v);
			if(!isNaN(year) && year>=2000 && year<=2100) {
				ZFDATE.fullYear = year;
			}
		}

		public function get ZFYEAR():String
		{
			if(ZFDATE !=null) {
				return ZFDATE.fullYear.toString();
			}
			return "";
		}

		public function set ZFMONTH(v:String):void
		{
			var month:int = parseInt(v);
			if(!isNaN(month) && month>=1 && month<=12) {
				ZFDATE.month = month-1;
			}
		}

		public function get ZFMONTH():String
		{
			if(ZFDATE!=null) {
				return (ZFDATE.month+1).toString();
			}
			return "";
		}

		public function set ZTYEAR(v:String):void
		{
			var year:int = parseInt(v);
			if(!isNaN(year) && year>=2000 && year<=2100) {
				ZTDATE.fullYear = year;
			}
		}

		public function get ZTYEAR():String
		{
			if(ZFDATE!=null) {
				return ZTDATE.fullYear.toString();
			}
			return "";
		}

		public function set ZTMONTH(v:String):void
		{
			var month:int = parseInt(v);
			if(!isNaN(month) && month>=1 && month<=12) {
				ZTDATE.month = month-1;
			}
		}

		public function get ZTMONTH():String
		{
			if(ZTDATE!=null) {
				return (ZTDATE.month+1).toString();
			}
			return "";
		}
		*/
	}
}